package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class sprg16 {
public static void main(String[] args) throws InterruptedException {
	WebDriver driver=new FirefoxDriver();
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	driver.get("http://google.com" );
	driver.findElement(By.id("gbqfq")).sendKeys("selenium");
	//we typed on google search now selecting
	Thread.sleep(1000);
	driver.findElement(By.xpath("//span/b[contains(text(),'ide')]")).click();	
	
	}
}
